package net.nightwhistler.htmlspanner.tyydextension;

import java.util.HashMap;

import android.text.Spannable;
import android.text.SpannableString;

/**
 * 解析章节的返回类型，目的是提供封面章节的支持
 * 
 * @author dave
 * 
 */
public class ChapterSpan {

	public ChapterSpan() {

	}

	public ChapterSpan(String value) {
		spannable = new SpannableString(value);
		coverPageInfo = new CoverPageInfo();
	}

	Spannable spannable;
	CoverPageInfo coverPageInfo;
	// 当页音频资源
	private HashMap<String, String> audioResources;
	// 当页注释资源
	private HashMap<String, Spannable> noteResources;

	public HashMap<String, String> getAudioResources() {
		return audioResources;
	}

	public void setAudioResources(HashMap<String, String> audioResources) {
		this.audioResources = audioResources;
	}

	public HashMap<String, Spannable> getNoteResources() {
		return noteResources;
	}

	public void setNoteResources(HashMap<String, Spannable> noteResources) {
		this.noteResources = noteResources;
	}

	public Spannable getSpannable() {
		return spannable;
	}

	public void setSpannable(Spannable spannable) {
		this.spannable = spannable;
	}

	public CoverPageInfo getCoverPageInfo() {
		return coverPageInfo;
	}

	public void setCoverPageInfo(CoverPageInfo coverPageInfo) {
		this.coverPageInfo = coverPageInfo;
	}
}
